#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTcpServer>
#include <QTcpSocket>
#include <QUrlQuery>
#include <QJsonDocument>
#include <QJsonObject>
#include <QDebug>
#include <QJsonArray>
#include <iostream>

#include "CoveragePlan.h"
#include "HttpService.h"
#include "httplib.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    QTcpServer *host_server;
    QTcpSocket *clientSocket;
public slots:
    void onNewConnection();
    void read_date();
private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
